package com.huawei.hms.framework.network.restclient;

import com.huawei.hms.framework.network.restclient.SubmitAdapter.Factory;
import java.lang.annotation.Annotation;
import java.lang.reflect.Type;

final class DefaultSubmitAdapterFactory extends Factory {
    static final Factory INSTANCE = new DefaultSubmitAdapterFactory();

    DefaultSubmitAdapterFactory() {
    }

    public SubmitAdapter<?, ?> get(Type type, Annotation[] annotationArr, RestClient restClient) {
        final Type submitResponseType = Utils.getSubmitResponseType(type);
        return new SubmitAdapter<Object, Submit<?>>() {
            public Type responseType() {
                return submitResponseType;
            }

            public Submit<Object> adapt(Submit<Object> submit) {
                return submit;
            }
        };
    }
}
